import json

from llm_service.tools.rule import search_knowledge_base_schema, get_weather_schema, send_email_schema, \
    create_rule_schema

tools = [search_knowledge_base_schema,
         get_weather_schema,
         send_email_schema,
         create_rule_schema
         ]

schema = [{**{"type": "function"}, "function": tool} for tool in tools]

print(json.dumps(schema, indent=4, ensure_ascii=False))
